package com.ljf.daily.softwareautorecord.dto.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.validation.AddGroup;
import com.ljf.common.validation.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 赚钱软件自动记录--新增修改  daily_dat_software_auto_record
 *
 * @author LJF
 * @since 2024-12-14
 */
@Data
@ApiModel("赚钱软件自动记录--新增修改")
public class DailyDatSoftwareAutoRecordCommand implements Serializable {

    @JsonProperty("id")
    @ApiModelProperty(value = "ID")
    @NotNull(message = "ID不能为空", groups = UpdateGroup.class)
    private Long id;

    @JsonProperty("softwareCode")
    @ApiModelProperty(value = "软件编码")
    @NotEmpty(message = "软件编码不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String softwareCode;

    @JsonProperty("modeType")
    @ApiModelProperty(value = "模式类型")
    @NotNull(message = "软件编码不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer modeType;

    @JsonProperty("executionDate")
    @ApiModelProperty(value = "执行日期")
    private Integer executionDate;

    @JsonProperty("dateOffset")
    @ApiModelProperty(value = "时间偏移量")
    @NotNull(message = "时间偏移量不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer dateOffset;

    @JsonProperty("withdrawalCount")
    @ApiModelProperty(value = "提现统计")
    private BigDecimal withdrawalCount;

    @JsonProperty("symbolCode")
    @ApiModelProperty(value = "标签编码")
    private String symbolCode;

    @JsonProperty("remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    @JsonProperty("autoExecution")
    @ApiModelProperty(value = "自动执行")
    @NotNull(message = "自动执行不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer autoExecution;

    @JsonProperty("amountHistory")
    @ApiModelProperty(value = "金额历史")
    @NotNull(message = "金额历史不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer amountHistory;

}
